Skip to content

Mobile: add workflow publishing UI (parity with VSCode)#99

Merged
zo-sol merged 1 commit into
mainfrom
feat/issue-96-mobile-workflow-publish
Jul 2, 2026
Merged

Mobile: add workflow publishing UI (parity with VSCode)#99
zo-sol merged 1 commit into
mainfrom
feat/issue-96-mobile-workflow-publish

Conversation

@mega123-art

Copy link
Copy Markdown
Contributor

Summary

  • Port the VSCode webview's workflow builder (packages/core/src/chat/ui/webview.ts, commit 279b8e6) to the mobile PublishForm (surfaces/webview): a skill/workflow toggle swaps the SKILL.md box for an owned-skills checklist, which synthesizes type: workflow + requiredSkills frontmatter on submit through the existing publishSkill path.
  • Required dependency: surfaces/localhost's emitOwnedSkills now attaches workflowMints (via workflowMintsAmong, newly exported from core) so the mobile picker excludes owned workflows — same on-chain ground-truth read VSCode uses, not the catalog-dependent card.type.
  • Validation matches VSCode: ≥1 required skill, capped at 16 (MAX_REQUIRED_SKILLS).
  • Added optional kind/requiredSkills fields to the publishSkill message for forward-compat with Workflow publishing: contract + backend + webview/VSCode/mobile + CLI + MCP tool (#88) #95's contract path, once merged.
  • Bonus: Publish now opens pre-set to whichever tab (skill/workflow) you were browsing, matching the VSCode entry point.

Acceptance criteria (from #96)

  • Mobile can mint a workflow from selected owned skills.
  • Owned workflows never appear in the required-skills picker.
  • Skill publishing is unchanged.

Test plan

  • tsc --noEmit clean on packages/core, surfaces/localhost, surfaces/webview (no new errors vs. baseline)
  • vite build succeeds for surfaces/webview
  • Live wallet e2e (mint a workflow, buy skills, confirm owned-workflow exclusion) — needs a funded devnet wallet, not exercised here

Fixes #96

🤖 Generated with Claude Code

PublishForm gains the skill/workflow toggle + owned-skills checklist the
VSCode webview builder already has: workflow mode swaps the SKILL.md box
for a checklist of owned skills, synthesizes type: workflow +
requiredSkills frontmatter on submit, and validates 1-16 selections
(MAX_REQUIRED_SKILLS).

Required dependency: surfaces/localhost's emitOwnedSkills didn't attach
workflowMints, so the mobile picker had no way to exclude owned workflows
(a workflow can't require another workflow, per the on-chain gate). Wired
workflowMintsAmong (now exported from core) through the ownedSkills event,
same ground-truth on-chain read the VSCode side uses instead of relying on
card.type (unreliable when a mint is missing from the indexer catalog).

Also: Publish now opens pre-set to whichever tab you were browsing
(skill/workflow), matching the VSCode entry point.

Fixes #96

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: add workflow publishing UI (parity with VSCode)

2 participants